#pragma once;
#include <IAnimation.h>
#include <IGameObject.h>
#include <IMotion.h>
class EffectManagement;
class Effect : public IGameObject , public IMotion
{
    friend EffectManagement;

private:
    real aliveTime = 2;
    IAnimation *ani = nullptr;
    Timer lifeTimer;
    real facing;
    SDL_Color color={0xff,0xff,0xff,0xff};
    Effect() = default;
    ~Effect();
public:
    real getFacing();
    IAnimation* getAnimation();
    SDL_Color getColor();
    void setColor(SDL_Color color);
};